declare global {
  interface IBundUrl {
    /** * 子包名 */ b: string,
    /** * 资源路径 */ l: string,
    /** 缓存关键字 */ id: string,
  }
}

/**
 * 创建 BundleUrl 对象
 * @param url
 * @param bundleName Asset Bundle 名称
 * @returns
 */
export function BundleLoader(url: string, bundleName: string, k?: string): IBundUrl {
  const obj: IBundUrl = Object.create(null);
  obj.b = bundleName;
  obj.l =  url;
  obj.id = `${bundleName}${url}`
  return obj
}
